icontheme: Silence some compiler warnings
authorTimm Bäder <mail@baedert.org>
Mon, 23 Oct 2017 11:39:22 +0000 (13:39 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 23 Oct 2017 12:23:52 +0000 (14:23 +0200)
gtk/gtkicontheme.c

index 64842b4ccd75fcd2ad7c5c1d5821b7627b62e98a..10217b1f64474458cf5e432777d23c0679e3a2b5 100644 (file)
@@ -4030,7 +4030,7 @@ gtk_icon_info_load_texture (GtkIconInfo *icon_info)
       icon_info->texture = gsk_texture_new_for_pixbuf (pixbuf);
       g_object_unref (pixbuf);
 
-      g_object_add_weak_pointer (icon_info->texture, &icon_info->texture);
+      g_object_add_weak_pointer (G_OBJECT (icon_info->texture), (void **)&icon_info->texture);
     }
 
   if (icon_info->in_cache != NULL)